package com.jybd.live.dao.impl;

import com.jybd.live.dao.CameraLiveRelDao;
import com.jybd.live.mapper.CameraLiveRelMapper;
import com.jybd.live.model.CameraLiveRel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class CameraLiveRelDaoImpl implements CameraLiveRelDao {

    private CameraLiveRelMapper cameraLiveRelMapper;

    @Autowired
    public CameraLiveRelDaoImpl(CameraLiveRelMapper cameraLiveRelMapper) {
        this.cameraLiveRelMapper = cameraLiveRelMapper;
    }

    @Override
    public CameraLiveRel getCameraLiveRelInUse(Integer cameraId) {
        return cameraLiveRelMapper.selectInUse(cameraId);
    }
}
